package com.trainsmart.example.mdi.control
{
	import com.trainsmart.smartmvc.Context;
	import com.trainsmart.smartmvc.CtrlBase;
	
	import mx.controls.Label;

	public class RenameCtrl extends CtrlBase
	{
		public function RenameCtrl(context:Context)
		{
			super(context);
		}
		override public function execute(request:Object=null, response:Function=null):void
		{
			var winId:Number = context.getInSession("winId") as Number;
			if(winId==request["winId"]){
				var msg:String = request["msg"] as String;
				var title:Label = context.getInSession("title") as Label;
				title.text = msg;
			}
		}
		
	}
}